const Joi = require('joi')

//定义用户名，密码，id，昵称，邮箱，头像的验证规则
const roleName = Joi.string().min(1).max(20).required()

//验证规则对象-roleName
exports.roleName_schema = Joi.object({ roleName })



